window.location.href target blank

108

javascript location href target _blank -

        window.open('http://www.google.com', '_blank');

window.location.href target blank -

<script type="text/javascript">
$("#site").on('click', function(){
    window.open("http://www.someone.com/","_blank");
});
</script>

Comments

Submit
0 Comments